import request from '@/utils/request'

// 登录
export const loginApi = (data) => {
  return request.post('/sys/login', data)
}

// 获取用户信息
export const getUserInfoApi = () => {
  return request.post('/sys/profile')
}

// 获取用户头像
export const getBaseUserInfoApi = (id) => {
  return request.get(`/sys/user/${id}`)
}
